package com.ahua.mallchat.common.dao;

import com.ahua.mallchat.common.domain.pojo.UserRole;
import com.ahua.mallchat.common.mapper.UserRoleMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleDao extends ServiceImpl<UserRoleMapper, UserRole> {

    public List<UserRole> listByUserId(Long uid) {
        return lambdaQuery().eq(UserRole::getUid, uid).list();
    }
}
